﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SMSDataAccess;
using System.Data;
using System.Data.Linq;

namespace SMSBusiness
{
   public class General
    {
        private string UserId = string.Empty;        
        public  General(string Userid)
        {
            this.UserId=Userid;
           
        }
        public List<User> GetUserInfo(string UserId, string Password)
        {
            DatabaseHelper _helper = new DatabaseHelper();
            using (var db = _helper.GetSMSData())
            {
                var result = (from x in db.Users where x.User_Id == UserId && x.Password == Password select x).ToList<User>();

                return result;
            }

        }
    }
}
